#include <string.h>
#include <iostream>
using namespace std;
void test1(){
    char str1[] = "hello";
    char str2[] = "world";
    //字符串拼接
    int len3 = strlen(str1) + strlen(str2) - 1;
    char str3[len3];
    strcpy(str3, str1);
    strcat(str3, str2);
    cout << str3 << endl;
}    
int main(int argc, char * argv[]){
    test1();    
    return 0;
}

